<template>
  <div>
    <svg-icon icon-class="website" @click="goto"/>
  </div>
</template>


<script setup>

import {ref} from "vue";
import {getToken} from "@/utils/auth";
const token = ref(getToken());
const url = ref("http://localhost:81");

function goto() {
   const fullUrl = `${url.value}?token=${encodeURIComponent(token.value)}`;
   window.open(fullUrl)
}
</script>
<style scoped>
svg {
  transition: all .5s;
}

svg:hover {
  transform: scale(1.1);
}
</style>

